package org.wwb.antbox.user.model.userrole.model;

import org.ant.commons.models.model.AbstractAddModel;
import org.wwb.antbox.user.model.userrole.entity.SysUserRole;
import javax.validation.constraints.NotEmpty;
import java.util.List;

/**
 * @Author Bond
 * @Date: 2020/2/23 10:43
 * @Description: 添加用户角色关系Model
 */
public class SysUserRoleAddModel extends AbstractAddModel<SysUserRole, String> {
    /** 用户id, 数据库字段：user_id */
    private String userId;

    /** 角色Id集合, 数据库字段：role_id */
    private List<String> roleIds;


    @NotEmpty
    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public List<String> getRoleIds() {
        return roleIds;
    }

    public void setRoleIds(List<String> roleIds) {
        this.roleIds = roleIds;
    }
}
